<%= form_for(@user_setting) do |f| %>
  <% if @user_setting.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(@user_setting.errors.count, "error") %> prohibited this user_setting from being saved:</h2>

      <ul>
      <% @user_setting.errors.full_messages.each do |msg| %>
        <li><%= msg %></li>
      <% end %>
      </ul>
    </div>
  <% end %>
<!--
  <div class="field">
    <%= f.label :boxmanager_id %><br />
    <%= f.number_field :boxmanager_id %>
  </div>
  <div class="field">
    <%= f.label 'Load Box Id' %><br />
    <%= f.number_field :loadbox_id %>
  </div>
  
  #### Made in case we had multiple algorithms to select from. ####
  <div class="field">
    <%= f.label :algorithm_id %><br />
    <%= f.number_field :algorithm_id %>
  </div>
-->

<!-- User sees the words, algorithm reads the number. -->
  <div class="field">
    <%= f.label :consumption_preference %><br />
    <%= f.select :consumption_preference, 
    [['Minimum Consumption', '1'],['Low Consumption','2'],
['Moderate Consumption','3'],['High Consumption','4'],
['Full Consumption','5']]%>
  </div>  
  
<!-- User sees the words, algorithm reads the number. -->
  <div class="field">
    <%= f.label :utility_control_lvl %><br />
    <%= f.select :utility_control_lvl,
    [['No Control','4'],['Control Over Priority 3','3'],
    ['Control Over Priority 2 & 3','2'],['Full Control','1']]%>
  </div>
  <div class="actions">
    <%= f.submit %>
  </div>
<% end %>


